package com.hd.appcommon.enums;

/**
 * @author: hzp
 * @date: 2021/12/3
 * @description:
 */
public enum DeviceType {


    LoRa("LoRa", 1), NB("NBIoT", 2);

    private String name ;
    private int index ;


    private DeviceType( String name , int index ){
        this.name = name ;
        this.index = index ;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return "DeviceType{" +
                "name='" + name + '\'' +
                ", index=" + index +
                '}';
    }
}
